<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>

<%@ taglib prefix="s" uri="/struts-tags" %>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>"> 
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!-- 屏幕自适应 -->
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<!-- bootstrap -->
	<link rel="stylesheet" href="shop/public/assets/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="shop/public/css/sign.css">
	<!-- 标题 -->
	<title>桌边零食-随时随地，想购就购~(～￣▽￣)～</title>
  </head>
  
  <body>
    <div class="container"> 
	   	<form name="registerForm" class="form-signin" method="post" onSubmit="return validateForm2(this)" >
	        <h2 class="form-signin-heading">桌边零食</h2>
	        <label for="inputUsername" class="sr-only">用户名</label>
	        <input type="text" name="user.username" class="form-control" placeholder="请输入用户名...." required="" autofocus="">
	        <label for="inputPassword" class="sr-only">密码</label>
	        <input type="password" name="user.userpass" class="form-control" placeholder="请输入密码...." required="" style="margin-bottom: 0px;">
	        <label for="inputPassword" class="sr-only">确认密码</label> 
	        <input type="password" name="repassword" class="form-control" placeholder="再次输入密码...." required="" style="margin-bottom: 0px;"> 
	        <label for="inputEmail" class="sr-only">邮箱</label>
	        <input type="email" name="user.useremail" class="form-control" placeholder="请输入邮箱...." required="" style="margin-bottom: 10px;">
	        <span id="error">${error}</span>
	        <button class="btncus btn btn-lg btn-primary btn-block" type="submit">注册</button>
	        <p class="cusfoot">已有账号，->点我<a href="shop/Login.jsp">登录</a></p>
	    </form>
    </div>

        
	<!-- Javascript -->
    <script src="shop/public/assets/js/jquery-1.11.1.min.js"></script>
    <script src="shop/public/assets/bootstrap/js/bootstrap.min.js"></script> 
    <script src="shop/public/assets/js/retina-1.1.0.min.js"></script>
       
	<!-- 注册检验 -->
	<script src="shop/public/assets/js/user.js"></script>
	<!--[if lt IE 10]>
	    <script src="shop/public/assets/js/placeholder.js"></script>
	<![endif]-->
        
  </body>
</html>
